package com.stgy.lease.web.api.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * ClassName:BaseSearchDto
 * Package:com.stgy.lease.web.admin.dto
 * Description:
 *
 * @Author:helei
 * @Create:2024/9/2 - 15:52
 */
@Data
@Schema(description = "检索条件的基类")
public class BaseSearchDto {
    private Long id;
    private Integer current = 1;
    private Integer size = 3;
    private Long provinceId;
    private Long cityId;
    private Long districtId;
    private Long apartmentId;

    public<T> Page<T> getPage(Class<T> tClass){
        return new Page<T>(current,size);
    }
}
